package com.app.server;

import com.app.model.UserModel;
import com.app.vo.UserVo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.security.auth.login.LoginException;
import javax.servlet.http.HttpServletRequest;

public interface UserService extends IService<UserModel>{
    void update(UserModel model);

    void insert(UserModel model);

    UserModel selectById(Integer id);

    UserVo getList(Integer page, Integer limit, String keyword);

    void updateStatus(Integer id, Integer status);

    void deleteById(Integer id);

    UserModel getOpenid(String code, HttpServletRequest request) throws LoginException;

    UserModel getPhone(String code, HttpServletRequest request,UserModel user);

    UserModel getUserByOpenid(String mobile);

    UserModel selectUserById(Integer id);
}
